(function(){
	Ext.define('AppView.base.BaseGrid',{
		extend:'Ext.grid.Panel',
		alias:'widget.basegrid',
		columns: [
	        { text: 'Name',  dataIndex: 'name' },
	        { text: 'Email', dataIndex: 'email', flex: 1 },
	        { text: 'Phone', dataIndex: 'phone' }
	    ],
	    initComponent:function(){
	    	this.store = Ext.create('AppView.base.BaseGridStore');
	    	this.callParent(arguments);
	    }
	});
	
	Ext.define('AppView.base.BaseGridStore',{
		fields:['name', 'email', 'phone'],
	    data:{'items':[
	        { 'name': 'Lisa',  "email":"lisa@simpsons.com",  "phone":"555-111-1224"  },
	        { 'name': 'Bart',  "email":"bart@simpsons.com",  "phone":"555-222-1234" },
	        { 'name': 'Homer', "email":"home@simpsons.com",  "phone":"555-222-1244"  },
	        { 'name': 'Marge', "email":"marge@simpsons.com", "phone":"555-222-1254"  }
	    ]},
	    proxy: {
	        type: 'memory',
	        reader: {
	            type: 'json',
	            root: 'items'
	        }
	    }
	})
})()